// 车辆告警
import ajax from './ajax'

//告警列表
// addressAlias: ""
// agentCustId: ""
// agentId: ""
// factoryCode: ""
// headLicensePlateNo: ""
// page: 1
// pageSize: 20
// remarks: ""
// warningTypeCode: ""
export const getVehicleWarnList = (data) => {
	return ajax.post('/monitor/api/warnInfo/warnInfoGpsList', data)
}
// 查告警详情
export const getVehicleWarnDetail = (warningInfoId) => {
	return ajax.post('/monitor/api/north/submitInterfaceOfApi', {
		interfaceData: `{"warningInfoId":${warningInfoId}}`,
		interfaceUrl: "/warningProcess/getWarningInfoById"
	})
}
// 提交处置
export const doApprove = (data) => {
	// const data = {
	// 	approveInfo: "123"
	// 	approveUserId: "503222"
	// 	dispatchUserId: "503433"
	// 	sts: "TRANSFER"
	// 	warningInfoId: 1151
	// }
	return ajax.post('/monitor/api/north/submitInterfaceOfApi', {
		interfaceData: JSON.stringify(data),
		interfaceUrl: "/warningProcess/operateWarningProcess"
	})
}